package br.com.mftc.efitness.basicas;

import java.io.Serializable;

import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.MappedSuperclass;

@MappedSuperclass
public abstract class ObjetoDaAcademia extends ObjetoGeral implements Serializable {

	private static final long serialVersionUID = 6545845522883803630L;

	@ManyToOne
	private Academia academia;

	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "autor_do_registro", insertable = true, updatable = true, nullable = true)
	private Operador autorDoRegistro;

	public Academia getAcademia() {
		return academia;
	}

	public void setAcademia(Academia academia) {
		this.academia = academia;
	}

	public Operador getAutorDoRegistro() {
		return autorDoRegistro;
	}

	public void setAutorDoRegistro(Operador autorDoRegistro) {
		this.autorDoRegistro = autorDoRegistro;
	}

}
